
		*************************************************************************
		*** EBA Voter Turnout (VT) in democracies no lag, Fixed effects  1-10 ***
		*************************************************************************

				clear
				version 16.1
				set max_memory 32g, permanently
				set seed 1234
				set level 95 		
				cd "C:\Users\Administrator\Downloads\"
				use "turnout_eba_stdlag.dta"

				
 *************
 ** 1. Ban **
 *************
		
		xtreg vt /**/ ban /**/
		regsave using /**/ eba_vtnlfe_1 /**/, replace
		
		tuples 				///
			/**/ 			///
			boycott			///
			competitive_s	///
			concurrentsamedate ///
			dist_mag_s		///
			econ_global_sl 	///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ ban /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
						
	
			regsave using /**/ eba_vtnlfe_1 /**/, tstat pval ci autoid append detail(all) 
					 			
						}
											
				
 *************
 ** 2. Boycott **
 *************
		
		xtreg vt /**/ boycott	  /**/
		regsave using /**/ eba_vtnlfe_2 /**/, replace
		
		tuples 				///
			ban 			///
			/**/ 			///
			competitive_s	///
			concurrentsamedate ///
			dist_mag_s		///
			econ_global_sl 	///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ boycott	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
				
	
			regsave using /**/ eba_vtnlfe_2 /**/, tstat pval ci autoid append detail(all) 					 			
						}
											
			
 *************
 ** 3. competitive_s **
 *************
		
		xtreg vt /**/ 	competitive_s  /**/
		regsave using /**/ eba_vtnlfe_3 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 			///
			/**/ 	///
			concurrentsamedate ///
			dist_mag_s		///
			econ_global_sl 	///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ competitive_s	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
		
			regsave using /**/ eba_vtnlfe_3 /**/, tstat pval ci autoid append detail(all)  			
						}
											
	
	

				
 *************
 ** 4. concurrentsamedate **
 *************
		
		xtreg vt /**/ concurrentsamedate	  /**/
		regsave using /**/ eba_vtnlfe_4 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			/**/ 			 ///
			dist_mag_s		///
			econ_global_sl 	///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ concurrentsamedate	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
						
	
			regsave using /**/ eba_vtnlfe_4 /**/, tstat pval ci autoid append detail(all)  			
						}
											
	
 *************
 ** 5. dist_mag_s **
 *************
		
		xtreg vt /**/ dist_mag_s	  /**/
		regsave using /**/ eba_vtnlfe_5 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			/**/ 			///
			econ_global_sl 	///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ dist_mag_s	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
						
	
			regsave using /**/ eba_vtnlfe_5 /**/, tstat pval ci autoid append detail(all) 
					
						}
											
								
	
 *************
 ** 6. econ_global_sl **
 *************
		
		xtreg vt /**/ econ_global_sl	  /**/
		regsave using /**/ eba_vtnlfe_6 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			/**/ 			///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ econ_global_sl	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
							
	
			regsave using /**/ eba_vtnlfe_6 /**/, tstat pval ci autoid append detail(all)   			
						}

 *************
 ** 7. election_2 **
 *************
		
		xtreg vt /**/ election_2	  /**/
		regsave using /**/ eba_vtnlfe_7 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			  /**/ 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_2	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
						
			regsave using /**/ eba_vtnlfe_7 /**/, tstat pval ci autoid append detail(all)  			
						}
											
									
	
 *************
 ** 8. election_3 **
 *************
		
		xtreg vt /**/ election_3	  /**/
		regsave using /**/ eba_vtnlfe_8 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			election_2  		///
			/**/   		   ///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_3	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
						
			regsave using /**/ eba_vtnlfe_8 /**/, tstat pval ci autoid append detail(all)  			
						}
																	
	
 *************
 ** 9. election_3_4 **
 *************
		
		xtreg vt /**/ 	election_3_4  /**/
		regsave using /**/ eba_vtnlfe_9 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			election_2  		///
			election_3   		   ///
			/**/  	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_3_4	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
					
			regsave using /**/ eba_vtnlfe_9 /**/, tstat pval ci autoid append detail(all) 			
						}
											
									
	
 *************
 ** 10. election_4 **
 *************
		
		xtreg vt /**/ election_4	  /**/
		regsave using /**/ eba_vtnlfe_10 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			election_2  		///
			election_3   		   ///
			election_3_4   	///
			/**/ 		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_4	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl if democracy==1, fe robust cluster(ccode)
					
	
			regsave using /**/ eba_vtnlfe_10 /**/, tstat pval ci autoid append detail(all)  			
						}
											
									
	 
	
